//
//  ImageListView.h
//  Castlery
//
//  Created by xie weizhi on 8/9/17.
//  Copyright © 2017 weizhi. All rights reserved.
//

#import <UIKit/UIKit.h>

static CGFloat const ProductListItemSize = 80.f;

@protocol ImageListViewDelegate;

@interface ImageListView : UIView

@property (nonatomic, weak) id <ImageListViewDelegate> delegate;
@property (nonatomic, copy, readonly) NSArray <NSURL *> *urls;
@property (nonatomic, assign) NSInteger selectedIndex;

- (void)reloadWithUrls:(NSArray <NSURL *> *)urls;

@end



@protocol ImageListViewDelegate <NSObject>
- (void)imageList:(ImageListView *)imageListView didSelectImageAtIndex:(NSInteger)index;
@end
